package be.webchess.www.service;

import java.util.List;

import be.webchess.www.exceptions.ChessException;

public interface IGenericService<obj> {
	
	obj findByID ( Long id ) throws ChessException;
	
	//List<obj>	findByCriteria ( String criteria ) throws ChessException;
	
	obj	insert ( obj o ) throws ChessException;
	
	obj update ( obj o ) throws ChessException;
	
	void delete ( obj o ) throws ChessException;
	
	List<obj> findAll () throws ChessException;
	
}
